<?php

$query = new WP_Query(array(
    'post_type' => 'portfolios',
    'posts_per_page' => '-1'
));
$option = array();
if($query->have_posts()) {
    while($query->have_posts()) {
        $query->the_post();
        $option[get_the_ID()] = get_the_title();
    }
}
wp_reset_postdata();

/*$thb_shortcodes['portfolio'] = array(
    'type'  => 'regular', 
    'title' => __('Portfolio blocks', THB_THEME_NAME),
    'attr'=>array( 
		'block_1'=>array(
			'type'=>'select', 
			'title'=>__('Block 1', THB_THEME_NAME), 
			'values'=> $option
		),
        'block_2'=>array(
			'type'=>'select', 
			'title'=>__('Block 2', THB_THEME_NAME), 
			'values'=> $option
		),
        'block_3'=>array(
			'type'=>'select', 
			'title'=>__('Block 3', THB_THEME_NAME), 
			'values'=> $option
		),
        'block_4'=>array(
			'type'=>'select', 
			'title'=>__('Block 4', THB_THEME_NAME), 
			'values'=> $option
		),
        'block_5'=>array(
			'type'=>'select', 
			'title'=>__('Block 5', THB_THEME_NAME), 
			'values'=> $option
		),
        'block_6'=>array(
			'type'=>'select', 
			'title'=>__('Block 6', THB_THEME_NAME), 
			'values'=> $option
		),
        'block_7'=>array(
			'type'=>'select', 
			'title'=>__('Block 7', THB_THEME_NAME), 
			'values'=> $option
		)
	)
);*/

$thb_shortcodes['image_frame'] = array(
    'type'  => 'dynamic', 
    'title' => __('Image Frame', THB_THEME_NAME),  
    'attr'  => array(
        'image_frame' =>array('type'=>'custom')
    )
);
?>